package org.ccay.sitemap;

import java.util.List;

/**
 * 导航菜单VO，供菜单树展现使用，只有少数属性
 * 
 * @author chaowangbang
 * @since 2011-10-24
 */
public class SiteNodeSimpleVO { 

	private int siteNodeId;

	private String name;

	/**
	 * 直接子节点（非递归所有深度的子节点） Created：2011-8-31
	 * 
	 * @author chaowangbang
	 */
	private List<SiteNodeSimpleVO> children;

	/**
	 * 栏目点击后需要访问的URL地址
	 */
	private String url;
	
	
	/**
	 * 链接打开的方式
	 */
	private String target;
	
	/**
	 * 显示图标
	 */
	private String faName;

	/**
	 * 菜单定位标识
	 */
	private String location;
 
	/**
	 * @return the target
	 */
	public String getTarget() {
		return target;
	}

	/**
	 * @param target the target to set
	 */
	public void setTarget(String target) {
		this.target = target;
	}

	public SiteNodeSimpleVO(){
		
	}
	
	/**
	 * 通过SiteNodeVO创建本对象
	 * @param siteNodeVO
	 */
	public SiteNodeSimpleVO(SiteNodeVO siteNodeVO){
		this.setSiteNodeId(siteNodeVO.getSiteNodeId());
		this.setName(siteNodeVO.getName());
		this.setUrl(siteNodeVO.getUrl()); 
		this.setTarget(siteNodeVO.getTarget());
		this.setLocation(siteNodeVO.getLocation()); 
		this.setFaName(siteNodeVO.getFaName());
	}
 

	/**
	 * @return the children
	 */
	public List<SiteNodeSimpleVO> getChildren() {
		return children;
	}

	/**
	 * @param children
	 *            the children to set
	 */
	public void setChildren(List<SiteNodeSimpleVO> children) {
		this.children = children;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

 

	/**
	 * @return the siteNodeId
	 */
	public int getSiteNodeId() {
		return siteNodeId;
	}

	/**
	 * @param siteNodeId
	 *            the siteNodeId to set
	 */
	public void setSiteNodeId(int siteNodeId) {
		this.siteNodeId = siteNodeId;
	}

	/**
	 * @return the url
	 */
	public String getUrl() {
		return url;
	}

	/**
	 * @param url
	 *            the url to set
	 */
	public void setUrl(String url) {
		this.url = url;
	}
	
	/**
	 * @return location
	 */
	public String getLocation() {
		return location;
	}

	/**
	 * @param location
	 */
	public void setLocation(String location) {
		this.location = location;
	}

	public String getFaName() {
		return faName;
	}

	public void setFaName(String faName) {
		this.faName = faName;
	}
}
